<template>
  <div>
    <div class="row">
      <div class="col-xs-offset-2 col-xs-8">
        <div class="page-header">
          <h2> Vue Router Demo</h2>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-offset-2 col-4">
        <div class="list-group">
          <router-link class="list-group-item" active-class="active" to="/student">学生</router-link>
          <router-link class="list-group-item" active-class="active" to="/teacher">老师</router-link>
<!--          <a class="list-group-item active" ="/student">学生</a>-->
<!--          <a class="list-group-item" href="/student">老师</a>-->
        </div>
      </div>
      <div class="col-6">
        <div class="panel">
          <div class="panel-body">
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'App'
}
</script>
<style>
</style>
